package com.burgeon.backend.college.control_panel.mappers;

import com.burgeon.backend.college.client_side.entity.ExamRecord;
import com.burgeon.backend.college.control_panel.entity.*;
/*import com.burgeon.backend.college.client_side.entity.Exam;*/


import java.util.ArrayList;
import java.util.List;


public interface BackendCollegeMapper {

    List<BExamRecord> findExamRecordByToken(String examId);

    Integer upCidByCode(String code,String cid);

    Integer upExamItemNum(String id,int num);

    Exam getExamByCid(String id);

    Integer delCourseCourseware(String cid);

    Integer createCourseCourseware(String cid,String img);

    Integer setExam(String id,String course_id,String publisher,String startTime,String endTime,Integer exam_duration);

    CourseRecord findCourseRecordByExamId(String eid,String empid);


    Integer upExamRecordApply(String id);

    List<BExamRecord> getExamRecord(String name, String examId, Integer start );

    Integer getExamRecordCount(String name,String examId);

    Integer delCourse(String id);

    Integer delExam(String id);

    Exam getExam(String id);

    List<Course> getCourseListByOption(String token);

    Integer publishExam(String id);

//    Integer createExamItem(String eid, String title, int score, String result, String token);
//
//    Integer createOption(String eiid,String value);

    Integer upExamItem(String id,String title,int score,String result);

    Integer upOption(String id,String value);

    Integer delExamItem(String id);

    Integer delOption(String id);

    Exam getExamById(String id);

    List<Exam> getExamList(String field,String message,int start,String token);

    String getExamListCount(String field,String message,String token);

    ArrayList<ExamItem> getExamListItem(String id);

    ExamItem getExamItem(String id);

    Integer createExam(Exam exam);

    Integer createExamItem(ExamItem examItem);

    Integer createOption(Option option);

    List<Option> getOption(String id);

    //***********************



    Integer upExamSwitch(String id,String EW);


    List<Course> getCourseList(String field,String message,String token,int start);

    int getCourseListCount(String field,String message,String token,int start);

    Integer upCourse(Course course);

    Integer upCourseImgAndPdf(String id,String imgUrl,String pdfUrl);

    Integer upCourseVideo(String id,String video);
    Integer upCourseImg(String id,String img);
    Integer upCourseType(String id,String type);

    Integer createCourse(Course course);

    Course findNewCourse(String token,String newCourseId);

    List<Course> findAllCourse(String token);

    List<CourseRecord> findCourseList(String token,String courseId);

    List<Exam> findAllExam(String token);

    List<ExamRecord> findExamRecordData(String token, String id);

    Exam findNewExam(String token, String newCourseOrExamId);
}
